package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 外部应用配置
 */
@Getter
@Setter
@Document(collection = "outer_app_config")
public class OuterAppConfig extends EntityBase {
    /**
     * 应用ID
     */
    @Indexed(unique = true)
    private String appId;

    private String appSecret;

    private String name;
    /**
     * 备注
     */
    private String desc;
    /**
     * 类型
     * kuai-100:快递100
     * zhima-cs:芝麻小客服
     * wechat-pay:微信支付
     * rd:内部研发
     */
    @Indexed
    private String type;
}
